package com.xiaoxu.intranetweb.mybatisplusSzappdb.api;

import com.alibaba.fastjson.JSONObject;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.api.template.BaseTemplate;
import com.xiaoxu.intranetweb.util.SzResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(name = "WxFeign", url = "http://116.62.45.167:8081/wx")
public interface WxFeign {

    @PostMapping(value = "/WxSendTemplateMsg/truckInform", consumes = MediaType.APPLICATION_JSON_VALUE)
    public JSONObject truckInform(@RequestBody BaseTemplate baseTemplate);
    @PostMapping(value = "/WxSendTemplateMsg/truckOutInform", consumes = MediaType.APPLICATION_JSON_VALUE)
    public JSONObject truckOutInform(@RequestBody BaseTemplate baseTemplate);
    @PostMapping(value = "/WxSendTemplateMsg/processesApprovalInform", consumes = MediaType.APPLICATION_JSON_VALUE)
    public JSONObject processesApprovalInform(@RequestBody BaseTemplate baseTemplate);
}
